package dpyNotepad;
import javax.microedition.lcdui.*;

public class TextPage extends TextBox {

	private Notepad notepad;
	public static final int PAGE_SIZE = 1024;
	
	public TextPage(String heading, String content, int maxSize, int options, Notepad notepad) {
		super(heading, content, maxSize, options);
		
		this.notepad = notepad;
				
		this.setCommandListener(this.notepad);
		this.addCommand(this.notepad.mainMenuCmd);
		this.addCommand(this.notepad.addPageCmd);	
	}

}
